const { ccclass, property } = cc._decorator;

@ccclass
export default class MatchGameGoldShop extends cc.Component {
    MatchGameGoldShop = null;
    item1_name:cc.Node = null;
    item2_name:cc.Node = null;
    item3_name:cc.Node = null;

    item1_gold:cc.Node = null;
    item2_gold:cc.Node = null;
    item3_gold:cc.Node = null;

    
    item1_store:cc.Node = null;
    item2_store:cc.Node = null;
    item3_store:cc.Node = null;

    
    item1_info:cc.Node = null;
    item2_info:cc.Node = null;
    item3_info:cc.Node = null;

    item1_btn:cc.Node= null;
    item2_btn:cc.Node= null;
    item3_btn:cc.Node= null;

    item1:cc.Node= null;
    item2:cc.Node= null;
    item3:cc.Node= null;

    closeBtn = null;
   
    onLoad() {
        this.MatchGameGoldShop = this.node;
        // MatchGameGoldShop/bg/New Node/item1/name
        let dd = this.MatchGameGoldShop.getChildByName("bg").getChildByName("New Node");

        this.item1 = dd.getChildByName("item1");
        this.item2 = dd.getChildByName("item2");
        this.item3 = dd.getChildByName("item3");

        this.item1_name = dd.getChildByName("item1").getChildByName("name");
        this.item2_name = dd.getChildByName("item2").getChildByName("name");
        this.item3_name = dd.getChildByName("item3").getChildByName("name");

        this.item1_gold = dd.getChildByName("item1").getChildByName("gold");
        this.item2_gold = dd.getChildByName("item2").getChildByName("gold");
        this.item3_gold = dd.getChildByName("item3").getChildByName("gold");

        this.item1_store = dd.getChildByName("item1").getChildByName("store");
        this.item2_store = dd.getChildByName("item2").getChildByName("store");
        this.item3_store = dd.getChildByName("item3").getChildByName("store");

        this.item1_info = dd.getChildByName("item1").getChildByName("info");
        this.item2_info = dd.getChildByName("item2").getChildByName("info");
        this.item3_info = dd.getChildByName("item3").getChildByName("info");

        this.item1_btn = dd.getChildByName("item1").getChildByName("get");
        this.item2_btn = dd.getChildByName("item2").getChildByName("get");
        this.item3_btn = dd.getChildByName("item3").getChildByName("get");

        this.closeBtn = this.MatchGameGoldShop.getChildByName("bg").getChildByName("btn_close");
    }
}

